package net.zjitc.service.impl;

import net.zjitc.dao.AdminDao;
import net.zjitc.dao.impl.AdminDaoImpl;
import net.zjitc.domain.AdminUser;
import net.zjitc.service.AdminService;

import java.sql.SQLException;

/**
 * 2 * @Author: 洪瑶
 * 3 * @Date: 2018/10/25 11:26
 * 4
 */
public class AdminServiceImpl implements AdminService{
    AdminDao dao = new AdminDaoImpl();
    @Override
    public AdminUser login(String username, String password) throws SQLException {
        return dao.sqlLogin(username,password);
    }

    @Override
    public AdminUser sqlregister(String username) throws SQLException {
        return dao.sqlregister(username);
    }
}
